package helper;

import org.apache.logging.log4j.*;

public class LogHelper {
	
	private final Logger logger = LogManager.getFormatterLogger(LogHelper.class);
	
	public void Debug(String methodName, String message) {
		if(logger.isDebugEnabled()){
			logger.debug(methodName + ": " + message);
		}
	}
	
	public void Error(String methodName, Exception ex) {
		if(logger.isErrorEnabled()) {
			logger.error(methodName, ex);
		}
	}
}
